<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../js/vue.js"></script>
</head>
<body>
  <div id="app">
      <p>{{counter}}</p>
      <cpn v-band:></cpn>
  </div>

  <template id="cpn">
    <div>
        <button>+</button>
        <button>-</button>
    </div>
  </template>
<br>
  <script>
    const cpn={
        template:'#cpn',
        data(){
            return{
                childscore:this.childcounter
            }
        }
        props:['childcounters'],
        methods:[
            increase(){
                this.childscore ++
            }
        ]
    }
    let app = new Vue({
      el:"#app",
      data:{
           msg:'hello world',
           counter:0
       },
       components
     })
   </script>
</body>
</html>